// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
// import Home from './App.vue'
import Demo1 from './Demo1.vue'
import Category from './Category.vue'
import CSRF from './toCSRF.vue'
import clickJacking from './clickJacking.vue'
import Alert from './alert.vue'

Vue.use(VueRouter)

const routes = [
    { path: '/', component: Category },
    { path: '/index', component: Category },
    { path: '/demo1', component: Demo1 },
    { path: '/toCSRF', component: CSRF },
    { path: '/alert', component: Alert },
    { path: '/clickJacking', component: clickJacking }
]

const router = new VueRouter({
    routes // routes: routes 的简写
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    render: h => h(App)
})